/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.netbrain.dao;

import java.util.List;
import mx.netbrain.model.Tree;
import mx.netbrain.model.User;

/**
 *
 * @author Julian
 */
public interface TreeDao {

    public void save(Tree tree);

    public void update(Tree tree);

    public Tree findById(Long id);

    public List<Tree> listAll(User user);

    public List<Tree> listRoot(User user);

    public List<Tree> listNodeId(Long id, User user);

    public List<Tree> listNodeFolder(Long id, User user);

    public void delete(Tree tree);
}
